package com.maxlen.coupon.entity.to;

import lombok.Data;

import java.util.List;

@Data
public class SkuInfoAndCartItemTO {

    private List<CartItemTO> cartItemVOList;

    private SpuAndSkuTO spuAndSkuTO;

    // 使用的优惠券 id
    private List<Long> couponId;

    // 用户 id
    private Long memberId;

    @Data
    public static class SpuAndSkuTO {

        private List<SkuBySpuIdTO> skuBySpuIdTO;

        private List<SpuInfoEntity> spuInfoEntity;

        @Data
        public static class SkuBySpuIdTO {
            /**
             * skuId
             */
            private Long skuId;

            /**
             * spuId
             */
            private Long spuId;
        }

        @Data
        public static class SpuInfoEntity {

            /**
             * 商品id
             */
            private Long id;
            /**
             * 商品名称
             */
            private String spuName;
            /**
             * 所属分类id
             */
            private Long catalogId;
            /**
             * 品牌id
             */
            private Long brandId;

        }
    }

}
